#ifndef VIDEOTHREAD_H
#define VIDEOTHREAD_H

#include <QSemaphore>
#include <QThread>
#include <QMutex>
#include <QDebug>

#include "videodevice.h"
#include "videoencode.h"

class VideoRecordThread : public QThread
{
    Q_OBJECT
public:
    explicit VideoRecordThread(VideoDevice* vd);
    ~VideoRecordThread();
    void stop(void);

protected:
    void run();

private:
    VideoDevice *vd;
    bool isStop;
};

class PictureRecordThread : public QThread
{
    Q_OBJECT
public:
    explicit PictureRecordThread(VideoDevice* vd);
    ~PictureRecordThread();
    void stop(void);

protected:
    void run();

private:
    VideoDevice *vd;
    bool isStop;
};

#endif // VIDEOTHREAD_H
